import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    active:0,
    city:'北京',
    activet:0
  },
  getters: {
  },
  mutations: {
    // 修改数据
    changeActive(state,n) {
      state.active = n
    },
    changecity(state,citya) {
      state.city = citya
    },
    changeActivet(state,n) {
      state.activet = n
    }
  },
  actions: {
  },
  modules: {
  }
})
